import {Service} from "adajs";
import Input from "../../../../controls/form/input";
import Text from "./../../../../controls/form/text";

class LodgeService extends Service {
    defaultData() {
        return {
            title: "设置",
            form: {
                fields: [
                    {type: Input, name: "yiyuan", label: "主体名称", inputType: "text", required: true},
                    {type: Text, name: "ksbc", label: "内容", required: true}
                ],
                btns: [
                    {action: "submit", name: "发布"}
                ]
            }
        };
    }

    onupdate(current, data) {
        Object.assign(current, data);
    }
}

export default LodgeService;